package cl.jpavlich.mpm.model;

import java.io.IOException;

import org.metawidget.inspector.annotation.UiComesAfter;
import org.metawidget.inspector.annotation.UiHidden;

import cl.jpavlich.mpm.services.MPMFileUtils;

import de.schlichtherle.truezip.file.TFile;

public class Copy extends Command {
	private String from;
	private String to;

	public Copy(String from, String to, ModPackage modPackage) {
		this.from = from;
		this.to = to;
		this.modPackage = modPackage;
	}
	
	@Override
	public void execute() throws IOException {
//		TFile src = new TFile(MPMFileUtils.getRepositoryDir(), modPackage.getLocalFilename() + "/" + );
//		TFile dest = new TFile(to);
		
		
		
	}

	@Override
	public void undo() {
		
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	@UiComesAfter("from")
	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	@Override
	@UiHidden
	public String getCommandDescription() {
		return "Copy " + from + " to " + to;
	}

}
